package com.example.springfortestspace.dao;

import com.example.springfortestspace.entity.DateTest;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;


/**
 * @Auther：FKM
 * @Date：2024/6/1113:42
 */
public class TestRowMapper implements RowMapper<DateTest> {


    @Override
    public DateTest mapRow(ResultSet resultSet, int i) throws SQLException {
        DateTest dateTest = new DateTest();
        dateTest.setBarcode(resultSet.getString("barcode"));
        dateTest.setBoxbarcode(resultSet.getString("boxbarcode"));
        dateTest.setSdbarcode(resultSet.getString("sdbarcode"));
        dateTest.setCreateDate(resultSet.getString("createDate"));
        return dateTest;
    }
}
